<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${createLinkTo(dir:'css',file:'v2.css')}" />
        <link rel="shortcut icon" href="${createLinkTo(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />				
    </head>
    <body>
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${createLinkTo(dir:'images',file:'spinner.gif')}" alt="Spinner" />
        </div>
        <div id="top">
            <div class='title'><g:link controller="default">GrailsKit.com</g:link></div>
            <div class='login'>
                <g:if test="${!session?.user?.isLoggedIn()}">
<g:link controller="guser" action="login">Log in</g:link>
                </g:if>
                <g:else>
			Hello ${session?.user?.name}!  <g:link controller="guser" action="logout">Log out</g:link>
                <g:if test="${session?.user?.hasRole('admin')}">
			 | (<g:link controller="admin" action="">Admin Panel</g:link>)
                </g:if>

                </g:else>
            </div>
        </div>
	<div id='menu'>
		<ul id='menuList'>
<li><g:link controller="default">Home</g:link></li>
<g:if test="${session?.user?.isLoggedIn()}">
<li><g:link controller="profile">My profile</g:link></li>
</g:if>
		</ul>
	</div>

            <div style='clear:both'/>
        <div id='layoutBody'>
        <g:layoutBody />
        </div>

	<div id='footer'>
<a href="http://code.google.com/p/grailskit">GrailsKit development site</a>
	</div>
    </body>	
</html>
